#!/bin/bash

error_exit(){
	exit 1
}

svnurl=$1

svn list ${svnurl} > /dev/null || error_exit
#svn list ${svnurl} -v | sort -k 1 -n -r|head -n10|grep -vw './'|sort -t '-' -k 2 -n -r | awk '{print $6}' || error_exit
svn list ${svnurl} -v |grep -v '^.*.*_[0-9]*\..*$'|grep -v '^.*.*_v[0-9]*\..*$'|grep -vw './'|awk '{print $6}'|sort -V -r|head -n10 || error_exit
exit 0